//
//  ProfileSummary.swift
//  codelabs
//
//  Created by 雷雷 on 24/05/2025.
//

import SwiftUI

struct ProfileSummary: View {
    var profile:Profile
    
    var body: some View {
        VStack(alignment:.leading){
            Text(profile.username)
                .bold()
                .font(.title)
            Text("Notifications: \(profile.prefersNotifications ? "ON" : "OFF")")
            
            Text("Seasons Photo: \(profile.seasonalPhoto)")
            
            Text("Goal Date: \(profile.goalDate)")
        
                }
    }
}

#Preview {
    ProfileSummary(profile:Profile.default)
}
